<?php
/**
 * Created by PhpStorm.
 * User: xutao
 * Date: 2018/8/7
 * Time: 14:05
 * //住宿信息
 */
namespace app\common\model;
use think\Model;

class Accommodation extends Model{
    protected $table = 'think_accommodation';
    protected $autoWriteTimestamp = 'datetime';
    //优劣 评价
    public function getHotelEvaluateAttr($value){
        $data = [
            1=>'优',
            2=>'劣'
        ];
        if($value){
            return $data[$value];
        }else{
            return '';
        }
    }

}